package com.sky.define;

public class MethodDemo3 {
    public static void main(String[] args) {
        System.out.println(addn(5));

        System.out.println(addn(100));
    }

    public static int addn(int n){
        return n*(n+1)/2;
    }
}
  